<?php
declare (strict_types = 1);

namespace app\Api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class User extends Model
{
    protected $table='ea_users';
    //查询用户详情信息
    public static function userDetails($user_id)
    {
        return self::where('id','=',"$user_id")
                     ->find();
    }
    //修改用户积分
    public static function updateUser($user_id,$where)
    {
        return self::where('id',$user_id)->update();
    }
}
